package com.fit.dao.course;

import java.util.Date;
import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.course.Course;
import com.fit.entities.user.User;

public interface CourseDAO {

	@CommitAfter
	public boolean save(Course newCourse);

	@CommitAfter
	public boolean delete(Course course);

	@CommitAfter
	public boolean update(Course course);

	public List<Course> findAll();

	public Course findByIdCourseAndBeginingDate(int courseId, Date beginingDate);

	public Course findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
	public List findByUser();

}
